#ifndef DEVICELIST_H
#define DEVICELIST_H

#include <QWidget>

namespace Ui {
class DeviceList;
}

class DeviceList : public QWidget
{
    Q_OBJECT

public:
    explicit DeviceList(QWidget *parent = nullptr);
    ~DeviceList();

private slots:
    void on_pushButton_online_clicked();

    void on_pushButton_all_clicked();

    void on_pushButton_offline_clicked();

private:
    Ui::DeviceList *ui;
    void InitUi();
    void clearGridLayout();

    QString checkedButtonStyle;
    QString noCheckedButtonStyle;
    void sendNetworkRequest(QUrl url);
};

#endif // DEVICELIST_H
